﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/User.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.SpecialistQAModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Lang.GetText("Menu", "Pending_Questions")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Lang.GetText("Menu", "Pending_Questions")%></h2>
    <div id="tabs" class="tabs">
        <ul>
            <li><a href="#fragment-1"><span><%: Lang.GetText("Menu", "All") %></span></a></li>
            <li><a href="#fragment-2"><span><%: Lang.GetText("Menu", "Medicine") %></span></a></li>
            <li><a href="#fragment-3"><span><%: Lang.GetText("Menu", "Psychology")%></span></a></li>
            <li><a href="#fragment-4"><span><%: Lang.GetText("Menu", "Sociology") %></span></a></li>
        </ul>
        <div id="fragment-1">
            <% foreach (var item in Model.allDept) 
            { %>
            <div class="tabcontent">
                <em><%= Html.ActionLink(item.Question, "AnswerQA", new { id = item.QAID })%></em>
                    <p><%: item.InsertDate.ToString("dddd, dd MMMM yyyy")%> - <%: item.Department.Name %></p>
            </div>
            <% } %>
        </div>
        <div id="fragment-2">
            <% foreach (var item in Model.medDept) 
            { %>
            <div class="tabcontent">
                <em><%= Html.ActionLink(item.Question, "AnswerQA", new { id = item.QAID })%></em>
                    <p><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%> - <%: item.Department.Name %></p>
            </div>
            <% } %>
        </div>
        <div id="fragment-3">
            <% foreach (var item in Model.psyDept) 
            { %>
            <div class="tabcontent">
                <em><%= Html.ActionLink(item.Question, "AnswerQA", new { id = item.QAID })%></em>
                    <p><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%> - <%: item.Department.Name %></p>
            </div>
            <% } %>
        </div>
        <div id="fragment-4">
            <% foreach (var item in Model.socDept) 
            { %>
            <div class="tabcontent">
                <em><%= Html.ActionLink(item.Question, "AnswerQA", new { id = item.QAID })%></em>
                    <p><%: item.InsertDate.ToString("dddd, dd MMMM yyyy HH:mm")%> - <%: item.Department.Name %></p>
            </div>
            <% } %>
        </div>
    </div> 

</asp:Content>
